package com.we.weauth.controller;

import com.we.weauth.service.DocumentsService;
import com.we.wecommon.utils.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (documents)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/documents")
public class DocumentsController {
    /**
     * 服务对象
     */
    @Resource
    private DocumentsService documentsService;

    /**
     * 查询all
     *
     * @return
     */
    @GetMapping("list")
    public R selectOne() {
        return R.ok(documentsService.documentsByall());
    }

}
